import time

from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.by import By


# 定义配置的实例对象option
option = Options()
# 修改实例化属性为debug模式启动的ip + 端口
option.debugger_address ="localhost:9222"
# 实例化driver 的时候，添加option 配置
driver = webdriver.Chrome(options=option)
driver.get("https://work.weixin.qq.com/wework_admin/frame")
driver.quit()
# 添加成员
driver.find_element(By.CSS_SELECTOR, ".ww_indexImg_AddMember").click()
# # 调试的步骤
# time.sleep(5)
# driver.find_element(By.XPATH,"//*[@id='username']").send_keys("徐克宁")
